
import 'package:flutter/cupertino.dart';

class AppImages {

  AppImages._();

  static Widget avatar(String? url, double size) {
    return Image.network(
      url?? "",
      width: size,
      height: size,
      fit: BoxFit.cover,
      errorBuilder: (context, error, stackTrace) {
        return Image.asset(
          "images/ic_dma.png",
          width: size,
          height: size,
          fit: BoxFit.fill,
        );
      },
    );
  }

}
